<template>
  <div class="content-five">
    <h4>用户评价</h4>
    <div class="score">
      <!-- 左侧 -->
      <div class="score-left">
        <p class="score-gride">8.0</p>
        <p class="score-pic">
          <img src="../../assets/images/detail/wujiaoxing8.png">
        </p>
        <p class="score-num">802人评价</p>
      </div>
      <!-- 右侧 -->
      <div class="score-right">
        <img src="../../assets/images/detail/judge5.png">
      </div>
    </div>
    <!-- 完成肤质测试后查看同肤质评分~  -->
    <p class="tip">完成肤质测试后查看同肤质评分~ </p>
    <!-- 查看各肤质评分  -->
    <p class="check-score">查看各肤质评分 >></p>

    <!-- 评论区 -->
    <!-- 第一个tab选项内容 -->
    <van-tabs v-model="active">
      <van-tab title="全部">
        <!-- 评论区标题 -->
        <div class="judge-area">
          <h5>热门评价</h5>
          <!-- 评论记录 -->
          <div class="judeg-info" v-for="n in 4" :key="n">
            <!-- 头像 -->
            <img src="../../assets/images/detail/judgetouxiang.png" class="touxiang">
            <!-- 右侧 -->
              <div class="judge-user">
                <!-- 第一行 -->
                <div class="first-line">
                  <span class="user-name">只会抱佛脚的小朋友</span>
                  <img src="../../assets/images/detail/judgewjx.png" class="xing">
                  <p>
                    <span class="zan-num">155</span>
                    <van-icon name="good-job-o" />
                  </p>
                </div>
                <!-- 第二行 时间 -->
                <p class="judge-time">12-29 01:41</p>
                <!-- 第三行 -->
                <p class="pl-detail van-multi-ellipsis--l3">用之前记得摇晃,再按压,不用再搓,一挤出来 就是泡泡了，用完脸没有那么油,感觉也挺水润 啊,人生第一支洗面奶,好用啊,建议购买 啊,人生第一支洗面奶,好用啊,建议购买</p>
            </div>
          </div>

        </div>
      </van-tab>

      <van-tab title="只看同肤质">内容 2</van-tab>
      <van-tab title="按肤质">内容 3</van-tab>
      <van-tab title="按星级">内容 4</van-tab>
    </van-tabs>

    <!-- 第五部分结束 -->
  </div>
</template>

<script>
// import { defineComponent } from '@vue/composition-api'
import { ref } from "vue";
export default {
 setup() {
   const active = ref(0);
   return {
     active,
   }
 }
}
</script>

<style lang="less" scoped>
@import "../../assets/css/var.less";
.content-five {
  width: 100%;
  padding: 0 16px;
  overflow: hidden;
  // background: pink;
  h4 {
    font-size: @L-font;
    font-weight: 600;
  }
  /deep/ .van-tabs__line {
    width: 40px;
    background-color: #64c8c9;
}
}
.score {
  margin: 30px 14px 0;
  // background: yellow;
  display: flex;
  justify-content: space-between;
  .score-left {
    width: 72px;
    .score-gride {
      font-size: 36px;
      color: #323232;
      text-align: center;
    }
    .score-pic {
      .center ();
      margin-top: 10px;
      img {
        width: 70px;
        height: 12px;        
      }
    }
    .score-num {
      color: #999;
      font-size: 12px;
      text-align: center;
      height: 40px;
      line-height: 40px;
    }
  }
  .score-right {
    padding-top: 5px;
    img {
     width: 220px;
     height:76px;     
    }
  }
}
.tip {
  font-size: 14px;
  font-weight: 600;
  height: #333;
  text-indent: 10px;
}
.check-score {
  text-align: right;
  color: #64c8c9;
  font-size: @S-font;
  height: 30px;
  line-height: 30px;
  span {
    word-spacing: 0;
  }
}
.judge-area {
  width: 100%;
  height: 400px;
  // border: 1px solid red;
  h5 {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
  .judeg-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    .touxiang {
      width: 38px;
      height: 38px;
    }
    .judge-user {
      flex: 1;
      margin-left: 10px;
      font-size: @S-font;
      border-bottom: 1px solid #ddd;
      padding-bottom: 20px;
      .first-line {
        display: flex;
        justify-content: space-between;
        color: #63c8c8;
        .user-name {
          font-weight: 600;
        }
        .xing {
          width: 62px;
          height: 12px;
        }
      }
      .judge-time {
        height: 30px;
        line-height: 30px;
        color: #afafaf;
        font-size: @SS-font;
      }
      .pl-detail {
        font-size: @S-font;
        color: #333;
      }
    }

  }
}
</style>
